package com.activiti;

import java.util.List;

import javax.annotation.Resource;

import org.activiti.engine.RepositoryService;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.TaskService;
import org.activiti.engine.task.Task;
import org.junit.Test;

public class BpmDefinitionTest extends BaseTestCase {

	@Resource
	private RepositoryService repositoryService;
	@Resource
	private RuntimeService runtimeService;
	@Resource
	TaskService taskService;

	@Test
	public void testDeploy() {
		List<Task> tasks = this.taskService.createTaskQuery().list();
		for(Task task: tasks) {
			System.out.println(task.getName());
		}
	}

}
